<?php

namespace app\controller;

class BaseController extends \core\Init
{
    /**
     * 基础控制器，封装通用方法
     */
    protected function sendData($data)
    {
        $ret = ['success' => 1, 'data' => $data];
        return $ret;
    }


    protected function sendErrData($data)
    {
        $ret = ['success' => 0, 'data' => $data];
        return $ret;
    }


}